// pages/mine/mine_price/mine_priceall.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
     this.getmoney()
     this.getstoreprice()
  },

  navyue(){
     wx.navigateTo({
       url: '/pages/mine/mine_price/mine_price',
     })
  },
  navstoreyue(){
    wx.navigateTo({
      url: '/pages/mine/dianpu/dianpu',
    })
 },
 getmoney(){
  wx.request({
    url: 'https://zujieba.com/Api/price/index.html',
    data:{uid:wx.getStorageSync('uid')},
    success:(res)=>{
         this.setData({
           price:res.data.data.price,
         })
       
         console.log(res);
         
         
      
    }
  })
},
getstoreprice(){
  wx.request({
    url: 'https://zujieba.com/Api/price/storeprice',
    data:{uid:wx.getStorageSync('uid')},
    method:'POST',
    success:(res)=>{
      console.log(res);
      this.setData({storeprice:res.data.data})
      
    }
  })
},
})